package com.wsoft.form.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 自定义表单-数据表
 * </p>
 *
 * @author Z001
 * @since 2024年08月29日 09:11:06
 */
@Getter
@Setter
@ToString
@Schema(title = "数据表DTO")
public class WfFormTableDto {
    @Schema(description = "tableId")
    private Long id;

    @NotNull
    @Schema(description = "页面Id")
    private Long formId;

    @NotBlank
    @Schema(description = "表名称")
    private String tableName;

    @Schema(description = "表描述")
    private String tableDesc;

    @Schema(description = "实体名称")
    private String modelName;

    @NotNull
    @Schema(description = "是否参与工作流")
    private Integer isBmp;

    @Schema(description = "工作流key")
    private String bmpKey;

    @Schema(description = "是否创建实体表")
    private Integer isCreateTable;

    @Schema(description = "关联类型")
    private Integer relationType;

    @Schema(description = "关联字段")
    private String relationColumn;

    @Schema(description = "表字段")
    private List<WfFormColumnDTO> columnList;
}
